package finbudget.client.ui.table.fields;

import finbudget.client.ui.table.Field;
import finbudget.client.ui.table.Transformator;

public class DateTimeField extends Field {
	private static final long serialVersionUID = 1542244721411838654L;

	/** Serialization requirements */
	protected DateTimeField() {
		super();
	}

	public DateTimeField(String id, String name, int row, int col) {
		this.type = Type.DATETIME;
		this.id = id;
		this.captionForm = name;
		this.captionGrid = name;
		this.row = row;
		this.column = col;
	}

	@Override
	public Object toRaw(Transformator transformator, Object value) {
		return transformator.toRaw(this, value);
	}

	@Override
	public String fromRaw(Transformator transformator, Object value) {
		return transformator.fromRaw(this, value);
	}

}
